<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="apple-mobile-web-app-capable" content="yes">  
	<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="renderer" content="webkit">
	<title>断魂剑士</title>
	<style type="text/css">
		
	</style>
	<script src="js/pixi.js"></script>
	<script src="js/PIXI自定义方法例子.js"></script>
</head>
<body>
	<script>
		const app = new PIXI.Application({
		    width: 800, height: 600, backgroundColor: 0x1099bb, resolution: window.devicePixelRatio || 1,
		});
		document.body.appendChild(app.view);
		
		const container = new PIXI.Container();
		
		app.stage.addChild(container);
		
		var 实例化 = new PIXI自定义方法例子();
		container.addChild(实例化.spirit); 
		实例化.start();//插入一次
		实例化.start();//插入第二次
		实例化.remove();//释放内存，删除一切相关精灵
		
	</script>
</body>
</html>